home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / tex / texmin / texmin_0.z / texmin_0 / usr / USAGE < prev   
Encoding:
Text File  |  1993-05-12  |  4.9 KB  |  117 lines

  1. Printing Postscript-files:
  2. --------------------------
  3. Postscript files are usually ending in .ps and are plain ascii-files.
  4. The first line always begins with %! and usually looks like
  5.  
  6. %!PS-Adobe-2.0
  7.  
  8. The file foo.ps can then be printed saying
  9.    gspr foo.ps
  10. CAVEAT: To save space, no fonts are provided with ghostscript. They
  11. are not needed to print converted DVI files. If you print something
  12. containing non DVI-converted text, everythin gets printed in the
  13. same (ugly) standard font.
  14.  
  15. Of course if you do have a Postscript printer, you can delete the
  16. /usr/local/bin and /usr/local/lib/ghostscript part of the package
  17. and simply pipe the .ps files to your printer in the way you prefer
  18. (and they look nice too, of course).
  19.  
  20. Printing Unix (i.e. troff) manpages:
  21. ------------------------------------
  22. Manpages usually end in .1 .2 , ..., .8, .n  or .man. You need to convert
  23. them to Postscript or DVI (see later on these) using groff.
  24. Groff is NOT part of this package (would make it too big and most
  25. people have it anyway).
  26. The man-page foo.1 can be converted to DVI by:
  27.   groff -Tdvi -man foo.1 > foo.dvi
  28. The man-page foo.1 can be converted to Postscript by:
  29.   groff -Tps -man foo.1 > foo.ps
  30. (For the second one you need to have ps support in your groff,
  31. which standard SLS distribution does not have, and if you dont have
  32. a real Postscript-printer, it won't be of any use with this distribution
  33. anyway because ghostscript fonts are not supplied).
  34.  
  35.  
  36. Printing DVI-files:
  37. -------------------
  38. DVI-files usually end in .dvi. They can be recognized by the file
  39. command if you have the appropriate entry in /etc/magic.
  40. Put the lines
  41. #
  42. # magic.tex:
  43. #
  44. 0       short   0173402 DVI File
  45. >16     string  >\0     (%s)
  46. 0       short   0173531 Packed TeX Font
  47. >4      string  >\0     (%s)
  48. 2       string  \000\022        Metafont Font Metric
  49. >34     string  >\0     (%s)
  50. somewhere in your /etc/magic file if they aren't already there. Then
  51.    file foo.dvi
  52. should output
  53.    DVI File
  54. if that one is a DVI file.
  55. To print them you have to convert them to Postscript using dvips. To
  56. convert foo.dvi to Postscript just say:
  57.    dvips foo
  58. producing foo.ps
  59. The other method to print them is using dvilj2 or dvilj2p, which is what
  60. you must do if you have a HP-Laserjet (or HP-Laserjet 2+) compatible
  61. laserprinter with limited ( < say 1 MB) memory which can't store a full
  62. bitmap of a page. Just say
  63.    dvilj2 foo
  64. producing foo.lj which can be sent directly to the printer (No NL->CR/NL
  65. conversion needed) e.g. by saying
  66.    cat foo.lj > /dev/lp1
  67. With either method it may (and will in the beginning) happen, that some
  68. fonts TeX requests are not found. In this case Metafont is automatically
  69. called, rasterizing the requested font in the requested size for your
  70. printer. This takes some time (1/2 min per font on a 486/33) but only
  71. occurs the very first time a specific font in a specific size is requested.
  72. Printing the same document later is much quicker.
  73.  
  74.  
  75. Printing TeX-files:
  76. -------------------
  77. TeX-files usually end in .tex. They are plain ascii-files usually
  78. with a header of some cryptic looking commands starting with backslashes
  79. and some quite legible text with occasional commands later.
  80. You first need to convert foo.tex to a DVI File saying
  81.    tex foo
  82. (If some error occurs, simply type return on every question, often
  83. TeX is able to produce something useful even on erroneous input.
  84. If TeX can't find a file it will prompt you for a substitution
  85. Simply typing return will not help here, so type  null  in response
  86. making TeX happy with a provided (empty) dummy file.)
  87. This may produce a lot of foo.* files (at least foo.log and foo.dvi)
  88. of which only the .dvi file is needed for printing. See above.
  89.  
  90. Printing LaTeX-files:
  91. ---------------------
  92. LaTeX-files end in .tex like TeX-files and can be distinguished from
  93. TeX-files by searching for the string "\\documentstyle"
  94. which should appear somewhere in the first lines or following an initial
  95. comment (=lines starting with %). foo.tex can be converted to a DVI file saying
  96.    latex foo
  97. To resolve cross-references, it is often necessary to give this command
  98. a second time. You will get a message at the end of the first run, telling
  99. you that, if necessary. If the document produces an index automatically,
  100. you have to make a second run and between the two runs issue the command
  101.    makeindex foo
  102. to produce the sorted and merged index.
  103. Every other thing said for TeX applies to LaTeX too which is no surprise
  104. because it's the same program.
  105.  
  106. Printing Texinfo files:
  107. -----------------------
  108. Texinfo files usually end in .texi or .texinfo. They can be distinguished by
  109. searching for the string "\\input texinfo" which should appear somewhere
  110. in the first lines. They can be treated exactly like TeX-files, i.e.
  111.    tex foo.texinfo
  112. will produce foo.dvi and a lot of other files. To produce an index here,
  113. you have to use the texindex saying e.g.
  114.    texindex foo.cp
  115. producing foo.cps, and so on for every file foo.??s you got a message telling
  116. it couldn't be found. (most common are foo.cp, foo.fn, foo.ky)
  117.